package com.parking.renters.inter;

import com.parking.common.core.model.Result;
import com.parking.renters.form.CertifiedDto;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "parking-certified", path = "/certified")
public interface CertifiedClient {
//    /***
//     * 查询物业信息
//     * @param certifiedAccountId
//     * @return CertifiedAccount
//     *
//     */
//    @GetMapping("/getCertifiedById")
//    @ApiOperation("查询物业信息（出租客模块调用）")
//    Result getCertifiedById(@RequestParam("certifiedAccountId")Integer certifiedAccountId);

    /***
     * 查询物业信息
     * @param
     * @return Dto
     *
     */
    @GetMapping("/certifiedInfo/findCertifiedInfoById")
    @ApiOperation("查询物业信息（出租客模块调用）")
    Result<CertifiedDto> findCertifiedInfoById(@RequestParam("certifiedInfoId")Integer certifiedInfoId);
}
